package com.atguigu.gulimall.order.controller;

import com.atguigu.gulimall.order.entity.OrderReturnApplyEntity;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestController {





/*     @Autowired
    private RabbitTemplate rabbitTemplate;

   @RequestMapping("/rabbit")
    public void test(){
        OrderReturnApplyEntity returnApplyEntity=new OrderReturnApplyEntity();
        returnApplyEntity.setId(222l);
        returnApplyEntity.setReturnName("555555");
        //String msg="hello-rabbit";
        rabbitTemplate.convertAndSend("hello-java-exchange","hello.java",returnApplyEntity);
    }*/

    @GetMapping("/{page}.html")
    public String ListPage(@PathVariable("page") String page){
      return page;
    }

}
